<?php

class DBManager
{
	private $db_link;
	
	private $hostname='localhost';
	private $username='root';
	private $password='';
	private $dbname='iyte_prt';

	function __construct()
	{
		self::$this->db_connect();
	}

	function __destruct()
	{
		mysqli_close($this->db_link);
	}

	function db_connect()
	{
		$this->db_link = new mysqli($this->hostname, $this->username, $this->password, $this->dbname);
		return $this->db_link;
	}
}

?>